libxl: event handling: Break out ao_work_outstanding
authorIan Jackson <ian.jackson@eu.citrix.com>
Mon, 9 Feb 2015 15:18:30 +0000 (15:18 +0000)
committerIan Jackson <Ian.Jackson@eu.citrix.com>
Mon, 9 Feb 2015 17:41:30 +0000 (17:41 +0000)
commit93699882d98cce9736d6e871db303275df1138a2
tree470f54313c20f99c2cfdf10cf4e3d3b30ff3537d
parent6b5a5bba1a8025040947f39f1c80012373f35efe
libxl: event handling: Break out ao_work_outstanding

Break out the test in libxl__ao_complete_check_progress_reports, into
ao_work_outstanding, which reports false if either (i) the ao is still
ongoing or (ii) there is a progress report (perhaps on a different
thread's callback queue) which has yet to be reported to the
application.

No functional change.

Signed-off-by: Ian Jackson <Ian.Jackson@eu.citrix.com>
CC: Ian Campbell <ian.campbell@citrix.com>
CC: Wei Liu <wei.liu2@citrix.com>
CC: Jim Fehlig <jfehlig@suse.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_event.c